package topcbl.taxi;

import topcbl.adapter.FavoriteAdapter;
import android.os.Bundle;
import android.support.v4.app.ListFragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class FavoriteFragment extends ListFragment {

	public FavoriteFragment() {
		super();
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		FavoriteAdapter adapter = new FavoriteAdapter(getActivity(),
				MainActivity.myDatabase.getAllFavorite());
		setListAdapter(adapter);
		return super.onCreateView(inflater, container, savedInstanceState);
	}
}